<html>
<head><meta charset="utf-8"><title>Dumping THIR? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Dumping.20THIR.3F.html">Dumping THIR?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="225669307"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Dumping%20THIR%3F/near/225669307" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Dumping.20THIR.3F.html#225669307">(Feb 09 2021 at 10:32)</a>:</h4>
<p>I understand that the compiler doesn't build a full THIR and generates THIR on demand, but is it possible to dump full THIR of a program, for debugging purposes? I can't see anything relevant in <code>-Zhelp</code>.</p>
<p>I'm trying to see what refs, derefs etc. are generated during HIR-&gt;THIR conversions.</p>



<a name="225701670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Dumping%20THIR%3F/near/225701670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Dumping.20THIR.3F.html#225701670">(Feb 09 2021 at 14:58)</a>:</h4>
<p>I'm not sure, but if it exists it's likely in <code>-Z unpretty</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>